package com.zhiyou100.serice;

import com.zhiyou100.model.Permission;
import com.zhiyou100.model.Role;
import com.zhiyou100.model.User;

import java.util.List;

public interface UserSerice {

    User findUserByEmail(String email);

    List<String> findRoleById(Integer id);

    List<String> findPermissionById(Integer id);

    boolean right(User user,String pwd_action);

    User findById(Integer id);
}
